//
//  KDSearchHistory.m
//  PublicSentimentMonitorSystem
//
//  Created by 魏强 on 15/11/23.
//  Copyright © 2015年 魏强. All rights reserved.
//

#import "KDSearchHistory.h"
#import <sqlite3.h>

@implementation KDSearchHistory
- (void)encodeWithCoder:(NSCoder *)encoder{
    [encoder encodeObject:self.searchText forKey:@"searchText"];
    [encoder encodeObject:@(self.type) forKey:@"type"];
}
- (instancetype)initWithCoder:(NSCoder *)decoder{
    if (self = [super init]) {
        self.searchText = [decoder decodeObjectForKey:@"searchText"];
        self.type = [[decoder decodeObjectForKey:@"type"] integerValue];
    }
    return self;
}
@end
